import { createApp } from 'vue'
import router from '@/router'
import store from '@/store'
import App from './App.vue'

// style
import '@/scss/app.scss'

const app = createApp(App)
app.use(router).use(store).mount('#app')
app.config.compilerOptions.isCustomElement = (tag: string) => {
  return (['a-test'] as string[]).includes(tag)
}
if (process.env.NODE_ENV === 'development') {
  app.config.performance = true
  import('vconsole').then((res) => {
    const VConsole = res.default
    new VConsole()
  })
  import('@/scss/common/vconsole.scss')
}
